'use strict';

module.exports = app => {
  const { DataTypes, BIGINT, DATE } = app.Sequelize;

  const Admin = app.model.define('admin', {
    id: { type: BIGINT.UNSIGNED, primaryKey: true, autoIncrement: true },
    name: {
        type:DataTypes.CHAR(32),
        allowNull:false
    },
    password:{
        type:DataTypes.CHAR(32),
        allowNull:false
    },

  },{
      tableName:'t_admin'
  });

  return Admin;
};